package chapter8.inheritance;


public class MyWonderfulClass {

	void go(){
		Bar b = new Bar();
		b.doStuff(
			new Foo() {
				public void foof(){
					System.out.println("foofy");
					}
				}
		);
		b.doStuff(
				new Foo() {
					public void foof(){
						System.out.println("not foofy");
						}
					}
			);
	}
	
	public static void main(String[] args) {
		MyWonderfulClass m = new MyWonderfulClass();
		m.go();
	}

}
